﻿package com.pool.data 
{
	import SpLib.ObjSys.NetObjC;
	import org.dm.utils.Map;

t 
	/**
	 * ...
	 * @author Scott
	 */
	public class DeskMgr extends NetObjC
	{
		private static var _instance:DeskMgr;
		
		public var roomLink:String;		//房间连接地址
		public var roomName:String;		//房间显示名称
		public var roomNo:String;		//房间号
		
		//private var _usersData:UserData;	//房间里所以人员数据
		private var _chairs:Map;			//房间里所有桌子
		private var _userData:UserDataMgr;			//房间里所有的人
		
		private var _timerHeart:Timer;
		
		public static function get Instance():DeskMgr
		{
			if(_instance==null)
			{
				_instance = new DeskMgr();
			}
			return _instance;
		}
		
		public function DeskMgr() 
		{
			UserDataMgr.Instance.addGroup("desk",new UserDataMgr());
			_userData=UserDataMgr.Instance.getGroup("desk");
			_chairs=new Map();
		}
		
		public function clean():void
		{
			UserDataMgr.Instance.removeGroup("desk");
			_userData=null;
			_chairs.clear();
		}
	}

}